<template>
	<view>
		<view style="padding: 30rpx;">
			<view style="background: #fff;">
				<view style="padding: 20rpx;">
					<input v-model="content" style="color: #000;" placeholder="请输入反馈" type="text" />
				</view>
			</view>
			<view style="position: fixed;bottom: 50rpx;width: 690rpx;">
				<view @click="addfeed" style="background: #00aaff;height: 88rpx;border-radius: 8rpx;text-align: center;line-height: 88rpx;">
					提交
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
			addFeedBack
		} from '@/utils/api/home.js';
	export default {
		data() {
			return {
				content:''
			}
		},
		methods: {
			addfeed(){
				addFeedBack({content:this.content}).then(res=>{
					console.log(res)
					if(res.data==true){
						uni.showToast({
							icon:'none',
							title:'提交成功'
						})
					}
				})
			}
		}
	}
</script>

<style>

</style>
